var config = require('../../config');
var mongoose = require('./../mongoose');

var imageSchema = new mongoose.Schema({
    title: String,
    descr: String,
    url: String,
    parentId: String
}, config.schemaOptions);
imageSchema.virtual('id').get(function() { return this._id; });
exports.CmmImage = mongoose.model('cmm_image', imageSchema);
